<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateProductRulesTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('product_rules', function (Blueprint $table) {
            $table->id()->comment('规格模板表');
            $table->integer('system_admin_id')->default(0)->comment('创建人id');
            $table->string('title')->comment('规格模板名称');
            $table->string('content')->comment('规格名称值的json字符串');
            $table->softDeletes();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('product_rules');
    }
}
